Skip to content

Keep a scripted room's map exits out of the room - #3279

Merged
erwan-joly merged 2 commits into
masterfrom
claude/project-thread-mqdroo
Nov 15, 2026
Merged

erwan-joly merged 2 commits into
masterfrom
claude/project-thread-mqdroo

Conversation

@erwan-joly

@erwan-joly erwan-joly commented Nov 15, 2026 •

Copy link
Copy Markdown
Collaborator

Requested by Erwan · project thread

Fixes #3266

What was wrong

A time-space or raid room built on a world map took every portal of that map. In the sample time-space on Chicken Farm Path, the map's ring to NosVille sat just south of the start spot. Walking onto it sent the player back to the open world through the ordinary portal path, so they left the run without paying dignity or a party life, and the run went on without them.

What changes

IMapInstanceGeneratorService.AddMapInstanceAsync takes withMapPortals (default true, so base maps and minilands are unchanged). ScriptedInstanceService builds its rooms with false, so a room only has the portals its script spawns.

Tests

  • MapInstanceLifeTests.AnAddedMapTakesItsMapsWorldPortals and AMapAddedWithoutMapPortalsHasNone
  • ScriptedInstanceServiceTests.RoomsDoNotTakeTheirMapsWorldPortalsAsync

In the client

Time-space timespace-01 on Chicken Farm Path, entered from its stone, then a click on the ring's cell.

master: inside the time-space room, the Chicken Farm Path ring sits south of the player
master: inside the time-space room, the Chicken Farm Path ring sits south of the player

master: after clicking the ring, the player is back on the open map at the stone, the time-space clock still running
master: after clicking the ring, the player is back on the open map at the stone, the time-space clock still running

branch: inside the room, no ring south of the player; the script's padlocked portal stands on the east
branch: inside the room, no ring south of the player; the script's padlocked portal stands on the east

branch: after clicking the same cell, the player is still in the room with its monsters
branch: after clicking the same cell, the player is still in the room with its monsters

Manual checks

Added under "Inside a time-space" in documentation/manual-test-plan.md:

  • No portal of Chicken Farm Path is drawn inside the rooms: the ring south of the start spot is gone, and walking onto its cell leaves you in the room with the clock still running.

Not checked here: a raid room. It goes through the same ScriptedInstanceService call.


Generated by Claude Code

@coderabbitai

coderabbitai Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 3 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between b01e8be and cb22bd3.

Files selected for processing: 6

  • documentation/manual-test-plan.md
  • src/NosCore.GameObject/Services/MapInstanceGenerationService/IMapInstanceGenerationService.cs
  • src/NosCore.GameObject/Services/MapInstanceGenerationService/MapInstanceGenerationService.cs
  • src/NosCore.GameObject/Services/ScriptedInstanceService/ScriptedInstanceService.cs
  • test/NosCore.GameObject.Tests/Services/MapInstanceGenerationService/MapInstanceLifeTests.cs
  • test/NosCore.GameObject.Tests/Services/ScriptedInstanceService/ScriptedInstanceServiceTests.cs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@erwan-joly erwan-joly self-assigned this Nov 15, 2026
@erwan-joly
erwan-joly force-pushed the claude/project-thread-mqdroo branch 2 times, most recently from 1418665 to 3ac3b4e Compare November 15, 2026 02:08
A time-space or raid room built on a world map took that map's portals, so
walking onto one left the run through the open world instead of its own exit,
without the dignity or party life that giving up costs. Rooms now only have
the portals their script spawns.

Fixes #3266

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014gSmkUqFCfmmNR3v3TbUCA
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014gSmkUqFCfmmNR3v3TbUCA
@erwan-joly
erwan-joly force-pushed the claude/project-thread-mqdroo branch from 3ac3b4e to cb22bd3 Compare November 15, 2026 02:34
@erwan-joly
erwan-joly merged commit 27e11ba into master Nov 15, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Scripted-instance rooms inherit their base map's world portals

2 participants